Skip to content

Conversation

@Techassi
Copy link
Member

@Techassi Techassi commented Oct 22, 2025

Needed for stackabletech/secret-operator#626. Similar code like below currently produces invalid code.

#[versioned(version(name = "v1alpha1"), version(name = "v1alpha2"))]
pub mod versioned {
    enum Bar {
        #[versioned(changed(since = "v1alpha2", from_name = "PrevA"))]
        A(A),
        B {},
    }

    struct A;
}

@Techassi Techassi self-assigned this Oct 22, 2025
@Techassi Techassi moved this to Development: In Progress in Stackable Engineering Oct 22, 2025
@Techassi Techassi changed the title fix(versioned): Consitently use .into() in enum variant From impls fix(versioned): Consistently use .into() in enum variant From impls Oct 22, 2025
@Techassi Techassi marked this pull request as ready for review October 22, 2025 14:25
@Techassi Techassi moved this from Development: In Progress to Development: Waiting for Review in Stackable Engineering Oct 22, 2025
@sbernauer
Copy link
Member

sbernauer commented Oct 22, 2025

Thanks for adopting the test!

@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Oct 22, 2025
@Techassi Techassi added this pull request to the merge queue Oct 22, 2025
@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering Oct 22, 2025
Merged via the queue into main with commit cfffa6c Oct 22, 2025
8 checks passed
@Techassi Techassi deleted the fix/stackable-versioned-from-impl-enum-into-fns branch October 22, 2025 15:03
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants